package chapter04.Example07;
//使用final关键字修饰Animal类
final class Animal{
}
//Dog类继承Animal类
class Dog extends Animal{
}
public class Example07 {
    public static void main(String[] args) {
        Dog dog= new Dog();  //创建Dog类的实例对象
    }
}
